<%-- 
    Document   : feedback
    Created on : 08/10/2011, 2:09:25 PM
    Author     : s4223901 Lan Ye
--%>
<script type="text/javascript">
    function check(){
        // This function is checking the fields if they are blank.
        var comment = document.getElementById('text').value;
        if (comment=="") 
        {
            alert("Please enter comments then re-submit this feedback.");
            return false;
        }  

        alert("Thanks for your feedback.");
        return false;
    }
        
</script>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../header.jsp" %>


<div id="content-container">
    <div id="content">

        <div id="tablecontainer">

            <p align="left">Add Feedback:</p>
            <form:form name="feedback" id="feedback" commandName="feedback" METHOD="POST">


                <form:textarea path="text" cols="40" /></br></br>
                <button type="submit" value="Give Feedback" onClick=" return check()">Give Feedback</button>
                <input type="button" value="Back" onClick="javascript: history.go(-1)"></input>
            </form:form>




        </div>
    </div>
</div>		

<%@ include file="../footer.jsp" %>